package com.dinadi.yidi.adapter;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * author: JiaYu.He
 * Date: 2017/3/21
 * Time: 16:25
 */

public class SettledCooperationViewPageAdapter extends FragmentPagerAdapter {

    List<Fragment> mList = new ArrayList<>();
    Context context;

    public SettledCooperationViewPageAdapter(FragmentManager fm,List<Fragment> mList,Context context) {
        super(fm);
        this.mList = mList;
        this.context = context;
    }

    @Override
    public Fragment getItem(int position) {
        return mList.get(position);
    }

    @Override
    public int getCount() {
        return mList.size();
    }
}
